from django.db import models
from apps.user.models import SystemUser


class Addressee(models.Model):
	send_email = models.BooleanField(default=False, verbose_name='是否发送邮件')
	send_message = models.BooleanField(default=False, verbose_name='是否发送短信')
	user = models.ForeignKey(SystemUser, on_delete=models.DO_NOTHING, verbose_name='系统用户ID')
	deleted = models.BooleanField(default=False)
	create_time = models.DateTimeField(auto_now_add=True)
	update_time = models.DateTimeField(default=None, null=True)

	class Meta:
		db_table = 'tiresias_addressee'
		verbose_name = '收件人'
		verbose_name_plural = verbose_name
